<template>
	<view class="content">
		<van-toast id="van-toast" />
		<currency></currency>
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
			<p>{{msg}}</p>
			<p>{{userName}}</p>
			<van-button>test</van-button>
		</view>
	</view>
</template>

<script>
	import mixin from '../../src/mixin/index.js'
	import http from '../../src/mixin/http.js'
	import currency from '../../src/component/currency.vue'
	import Toast from '../../wxcomponents/vant/toast/toast'
	import {mapState} from 'vuex'
	
	export default {
		components: {
			currency
		},
		mixins: [mixin, http],
		data() {
			return {
				title: 'Hello'
			}
		},
		computed:{
			...mapState(['userName'])
		},
		onLoad() {
		},
		methods: {

		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
